package com.zxy.ziems.server.energy.pojo.param;

import com.zxy.ziems.server.energy.pojo.vo.EnergyEfficiencyCompareTypeVO;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
public class EnergyEfficiencyCompareParam {
    /**
     * 设备1
     */
    @NotBlank(message = "设备1不可为空", groups = {SelectType.class, SelectCompare.class})
    private String deviceId1;

    /**
     * 设备2
     */
    @NotBlank(message = "设备2不可为空", groups = {SelectType.class, SelectCompare.class})
    private String deviceId2;

    /**
     * 时间维度：0-月；1-年
     */
    @NotNull(message = "时间维度不可为空", groups = {SelectCompare.class})
    private Integer timeDimension;

    /**
     * 日期
     */
    @NotBlank(message = "时间不可为空", groups = {SelectCompare.class})
    private String date;

    /**
     * 标杆返回值
     */
    private List<EnergyEfficiencyCompareTypeVO> typeVOList;

    public interface SelectType { }
    public interface SelectCompare { }
}
